package com.starnet.yarnmonitor.yarn.vo.result;

import lombok.Data;

@Data
public class PageResult {
    private boolean success;
    private String msg;
    private Object content;
    private PageVO pageVO;

    public PageResult() {
    }

    public PageResult(boolean success, String msg, Object content, PageVO pageVO) {
        this.success = success;
        this.msg = msg;
        this.content = content;
        this.pageVO = pageVO;
    }

    public static PageResult success(Object content, PageVO pageVO) {
        return new PageResult(true, "请求成功", content, pageVO);
    }

}
